package com.xuecheng.media.agent;

import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.media.agent.sentinel.MediaTeacherAgentFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wuyunyun
 * @data 2021/10/16 0:20
 */
@FeignClient(value = XcFeignServiceNameList.XC_CONTENT_SERVICE,fallback = MediaTeacherAgentFallback.class)
@Component
public interface MediaTeacherAgent {

    @GetMapping("/content/getTeacherMediaCount/{mediaId}")
    RestResponse<Integer> getTeacherMediaCount(@PathVariable Long mediaId);
}
